const mysql =require('mysql')
const db= mysql.createConnection({
    host: '127.0.0.1',
    user: 'root', 
    password: '111111', 
    database: 'medicine_manage',
    timezone: "08:00",
})
db.connect((err)=>{
    if(err)
    {
      console.log('can\'t connect to mysql'+err.message)
    }
    else{
      console.log(" connect to mysql sucessfully")
    }
    })
module.exports=db